home *** CD-ROM | disk | FTP | other *** search
/ CookBook Heaven / COOKBOOK HEAVEN.iso / health / slimmer / slimmer.doc < prev    next >
Text File  |  1991-03-22  |  46KB  |  907 lines

  1. e   S L I M M E R    R E V   3.0   D A T E D    J A N    3 1 ,   1 9 9 1
  2.  
  3.              (c) copyright 1988, 1989, 1990 by George D. Summers
  4.  
  5.  
  6. ****************************** WARNING ****************************************
  7. *                                                                             *
  8. *   SLIMMER CREATES OR WRITES TO ONE OR MORE FILE(S) EVERY TIME YOU RUN IT!   *
  9. * THEREFORE, MAKE YOURSELF A WORKING COPY OF SLIMMER & KEEP THE ORIGINAL IN A *
  10. * SAFE PLACE FOR REFERENCE.                                                   *
  11. *                                                                             *
  12. ****************************** WARNING ****************************************
  13.  
  14.  
  15.         DEDICATION
  16.  
  17.     SLIMMER is dedicated to the ultimate programmer - the  creator  of  the
  18.     universe.
  19.  
  20.  
  21.         OVERVIEW
  22.  
  23.     SLIMMER  will do the following for you:
  24.         1. Calculate your ideal weight.
  25.         2. Calculate  your  ideal daily calorie requirement.
  26.         3. Keep  track of your weight,  food and exercise calories, as well
  27.     as your daily  intake  of  protein,  carbohydrates,  fat,  cholesterol,
  28.     sodium, potassium and fiber and plot your progress.
  29.         4.   Provide you with a starting data base of over 1,200 food items
  30.     with their corresponding food values.  Allows you to select  and  scale
  31.     items from the food tables for your daily food list.
  32.         5.  Provides for custom food tables for each (registered) user. The
  33.     1,200 item data base can be expanded to up to 7,000 food items in up to
  34.     19 categories and up to 400 types of exercise.
  35.         6.   Allows  the  (registered) user to save the last fourteen (days
  36.     of)  daily  food value lists.  These lists may be recalled and  edited,
  37.     summed, or deleted - and even copied to a different date if desired.
  38.         7. Various types of exercise may be selected by the user and may be
  39.     scaled and saved in the daily food value lists.
  40.         8.  Daily  food  value  lists  can  be printed by registered users.
  41.     (or  if no printer is on-line, a print file will be written.) The Epson
  42.     FX and PostScript printers are supported.
  43.  
  44.  
  45.         SYSTEM REQUIREMENTS
  46.  
  47.     SLIMMER  requires  an  IBM  compatable  computer  with at least 450K of
  48.     memory in which to load.  If your computer  has  a  math  co-processor,
  49.     SLIMMER  will  use  it.  SLIMMER can be run on one and two-disk systems
  50.     with difficulty.  It runs fastest when loaded to and run  from  a  hard
  51.     disk-equipped  system. DOS 3.0 or higher is required.  If  you  have  a
  52.     monochrome  or  color monitor with or without a graphics card, you will
  53.     be able to use SLIMMER. The Monochrome, CGA, EGA,  and  VGA  modes  are
  54.     supported.
  55.                                     Page 1
  56.  
  57.  
  58.  
  59.         INSTALLATION - HARD DISK
  60.  
  61.     SLIMMER  is  distributed on two 5-1/4" disks or one 3-1/2" disk with an
  62.     installation batch file HDINST.BAT that will allow  the  user  (with  a
  63.     hard  disk)  to select a source and a target drive for the program.  It
  64.     creates a SLIM30 subdirectory on your hard disk.  To  install  SLIMMER,
  65.     change  to  the drive with this disk in it and enter the command HDINST
  66.     FROM TO where FROM and TO are your  floppy  disk  and  your  hard  disk
  67.     letter designations, respectively. An example is:
  68.  
  69.                                HDINST A D
  70.  
  71.     where  the FROM floppy disk is A and the TO hard disk is D. Notice that
  72.     there are no colons (:) in the above command.
  73.  
  74.  
  75.         INSTALLATION - FLOPPY DISK
  76.  
  77.     For those without a hard disk, run SLIMMER from your copy  disks  after
  78.     you  have  safely  put  away  your original. When running from a floppy
  79.     disk, file maintenance is important since SLIMMER will create new files
  80.     or addend existing files and eventually fill your disk.
  81.  
  82.         1. SYSTEM WITH ONE 360K FLOPPY DISK -
  83.          The  single  drive  360k  system  is really not suited for running
  84.     SLIMMER Rev 3.0. By the time you changed disks about 20 times during  a
  85.     session, you would hate me....Have you considered a hardware upgrade?
  86.  
  87.         2. SYSTEM WITH TWO 360K FLOPPY DISKS -
  88.         With  two  floppy  drives, it will be a little easier to run, and a
  89.     lot fewer disk changes. The following 4 disks will be needed:
  90.  
  91.               disk 1:    files S3.EXE, the *.DAT files,  and  your  working
  92.                          data  files. This is your primary working disk and
  93.                          is kept in drive A:>  Include a batch file on this
  94.                          disk with the following statement: path = a:\;b:\;
  95.                          in  order  to  have  your  computer  check out the
  96.                          second drive. File AB.BAT should fit the bill.
  97.  
  98.               disk 2:    files GRAPH.EXE and CALCOUNT.EXE
  99.  
  100.               disk 3:    files   INITIAL.EXE,  UTILITY.EXE,  REGIS.EXE  and
  101.                          REVWT.EXE
  102.  
  103.               disk 4:    files SLIMMER.DOC and the CALTAB files (if you are
  104.                          a registered user.
  105.  
  106.         3. SYSTEM WITH ONE OR MORE 3-1/2" DISKS -
  107.         If you have a 720k floppy disk, then the program will have to be on
  108.     two floppy disks as follows:
  109.  
  110.               disk 1:    files S3.EXE,  GRAPH.EXE,  CALCOUNT.EXE, the *.DAT
  111.  
  112.                                      Page 2
  113.  
  114.                          files,  and  your working data files. This is your
  115.                          primary working disk and  is  kept  in  drive  A:>
  116.  
  117.               disk 2:    files INITIAL.EXE, UTILITY.EXE, REGIS.EXE,  REVWT.
  118.                          EXE, and SLIMMER.DOC. CALTAB will go here  if  you
  119.                          are a registered user.
  120.  
  121.     If  this is a two-disk system, add the file AB.BAT to disk 1, and start
  122.     the program with the command AB. Otherwise, with disk 1 in your  drive,
  123.     type  S3.  Note that for registered users, SLIMMER is available to them
  124.     on 3-1/2" disks.
  125.  
  126.         4. IBM AT OR EQUIVALENT WITH HIGH DENSITY 5-1/4" DRIVE
  127.     Since  SLIMMER  writes to and updates files in the default drive, it is
  128.     strongly recommended that you never run SLIMMER from a 360K disk in the
  129.     AT's high density drive. Either copy SLIMMER to a subdirectory  on  the
  130.     hard disk, or copy it to a high density disk before running it. All the
  131.     SLIMMER files will nearly fit on a single 1.2 meg high density  floppy.
  132.     Move  some  of  the lesser used files such as SLIMMER.DOC and the demo
  133.     files for SLIM (SLIM.* and *.SLI) and CALTAB.* to free up some room.
  134.  
  135.         5. COMPUTER WITH HIGH DENSITY 3-1/2" DRIVE
  136.     All the SLIMMER files will fit on a high density 3-1/2" floppy. It  can
  137.     be  run  from the drive with the command S3. If your data files get too
  138.     large, you may need to move some of the lesser used files to  a  second
  139.     floppy (see above).
  140.  
  141.         RUNNING SLIMMER
  142.  
  143.     To run SLIMMER, type S3 and press <ENTER> after you have either entered
  144.     the  SLIM30  subdirectory on your hard disk, or are on the floppy drive
  145.     containing your working copy of the SLIMMER files.  After you have  run
  146.     SLIMMER  a  few  times  and  get  tired of the opening screens, you can
  147.     bypass them by entering S3 n$ and pressing return where n$ is your name
  148.     (or the file name you want to view). For example, you can view the data
  149.     for Slim by typing S3 SLIM, then  pressing  <ENTER>.  A  one-line  .BAT
  150.     file   will   save  you a bit of typing.  It would contain the one-line
  151.     command S3 SLIM (e.g.), and could be called  1.BAT  or  similar  simple
  152.     name.  SLIMMER could then be run by entering "1" and then "<RETURN>".
  153.  
  154.         MONOCHROME MONITORS AND LAPTOPS
  155.  
  156.     SLIMMER makes extensive use of color in its screens and  windows.  This
  157.     looks  great on color monitors and in greyscale tones. The truly "black
  158.     and white" monitor (usually amber or  green),  however,  will  be  very
  159.     difficult  to  read  for some color combinations. For you without color
  160.     capability,  you  may want to  try  the  "black  and  white"  option in
  161.     SLIMMER.   As you start up  SLIMMER  for the first time, simply type in
  162.     S3 BW to run in black and white, or as in the example in  the  previous
  163.     paragraph,  type in S3 BW SLIM to run in black and white and bypass the
  164.     opening screens.  The default black and white mode assumes a monochrome
  165.     monitor and provides a  "white on white"  background.  If your computer
  166.     has graphics  capability,  then select the UTILITY option from the main
  167.     menu and make the appropriate changes to the graphics mode.
  168.  
  169.                                     Page 3
  170.  
  171.  
  172.     The default color configuration assumes a color graphics adaptor  (CGA)
  173.     and has a red on white background.
  174.  
  175.     For those of you with laptops,  SLIMMER  is  available  on  3-1/2" 720k
  176.     diskettes. Please indicate your preference for either the 3-1/2" or the
  177.     5-1/4" diskettes when ordering.
  178.  
  179.         DEBUGGING
  180.  
  181.     Every effort has been made to program SLIMMER with sufficient  internal
  182.     checks  to  preclude the more common bugs. It will, for example, open a
  183.     new file for you if it can't find one already started.  Error  comments
  184.     are  provided  when  the  data  that  you  input doesn't match what the
  185.     program expects to see. With a program of  this  size,  I'm  sure  I've
  186.     overlooked  some  combinations  that might give strange results. Please
  187.     contact  me  with  the  circumstances  and   a   description   of   any
  188.     abnormalities  that  you  find. These abnormalities include any program
  189.     hang-ups without error message, errors in computations,  and  instances
  190.     where  you don't get the response that you would expect to see. (See my
  191.     name and address at the end of this document) SLIMMER will  be  updated
  192.     as changes become necessary.
  193.  
  194.         SLIMMER VERSION #
  195.  
  196.     Version  1.0   - initial  release  - June 1988
  197.     Version  1.0a  - corrected routines for monochrome monitors - June 1988
  198.     Version  2.0   - added  calorie  counter  &  improved  editor  and plot
  199.                      routines - Feb 1989
  200.     Version  2.0a  - Fix  for  five food table files to enable space bar to
  201.                      tag files - May 1989.  Fixed  so  that personal tables
  202.                      would be saved when going from edit to calorie counter
  203.                      mode.  Released SLIM2FIX.ARC & SLIM2FIX.ZIP for use by
  204.                      Version 2.0 users.
  205.     Version  2.0b  - Fix  to  link  between editor and food tables.   Added
  206.                      expanded fast food menu section to food tables. Treats
  207.                      exercise as a (negative) food category  for easy input
  208.                      and scaling of multiple daily exercises. Aug 1989.
  209.     Version  2.0bx - Introduced EGA 640 x 350 color graphics in addition to
  210.                      the the CGA 640 x 200 B&W and monochrome graphics. Fix
  211.                      to CGA graphics of version 2.0b. Sept 1989
  212.     Version  2.1   - Fix to allow SLIMMER to run on computers with DOS 2.11.
  213.                      Sept 1989.
  214.     Version  3.0   - Expanded  data  base  to  1,200  items  and  to  track
  215.                      daily  weight,  calories,  exercise,  protein, sodium,
  216.                      potassium, carbohydrates, cholesterol, fat, and fiber.
  217.                      added monochrome graphics for CGA, EGA  and  VGA,  and
  218.                      color  graphics  for VGA. The CALTAB food table editor
  219.                      was made available to registered users  only.  Use  is
  220.                      now  restricted to those with DOS 3.0 or higher. Added
  221.                      support  for  PostScript  printers.  Mouse  support is
  222.                      provided.
  223.     Version  3.0i  - All the above but with height in cm and weight in kg.
  224.                                     Page 4
  225.  
  226.  
  227.         USE OF SLIMMER REV 1 AND REV 2 FILES
  228.  
  229.     Whenever  revisions  are  made, there's always a question of what to do
  230.     with the old files from the previous revision. In this case, if you use
  231.     a REV 1 or REV 2 file 'n$.SLM', SLIMMER will convert  it  to  a  REV  3
  232.     file.  Be  sure to back up your old 'n$.SLM' files before you try this.
  233.     The 'n$.CAL' file from REV 1 and REV 2 should  be  DELETED.   ONLY  THE
  234.     DATA  FILES  ENDING  WITH  SLM  should  be  retained  from  the earlier
  235.     versions.
  236.  
  237.         IS SLIMMER USER FRIENDLY?
  238.  
  239.     Whether  a  program  is  "user  friendly"  or  not is a function of the
  240.     amount of time  you  must  spend in reading and re-reading the documen-
  241.     tation and whether there is sufficient help online.  There are  certain
  242.     conventions that have been used within SLIMMER  that  try  to  make  it
  243.     respond in the way that you might expect for a given keystroke. Some of
  244.     these  are  listed  below:
  245.           <ENTER> - is used to select highlight bar items, to indicate  the
  246.     end  of  keyboard  entries,  and  to  indicate  the  end  of a selected
  247.     function.
  248.           <ESC> - used to cancel a function  and  return  to  the  previous
  249.     menu.
  250.           <SPACE BAR> - used only in food tables  to  tag/untag  your  food
  251.     selections.
  252.           <ARROW  KEY>  - UP and DOWN arrows are used to move the highlight
  253.     bar up and down. In addition, HOME and PAGE UP move the bar to the  top
  254.     of the menu, and END and PAGE DOWN move the bar to the end.
  255.           < + and - > - The  +  and  -  keys  are  used  to  increment  and
  256.     decrement  the  date  and  weight input values and help to decrease the
  257.     keystrokes required to input data. In  general,  there  is  a  list  of
  258.     functions  at  the bottom of each menu or table that will indicate your
  259.     choice of keys to press.
  260.           HOT  KEYS  are  single keystrokes of the letters appearing at the
  261.     left end of some  of  the  lines  of  the  selection  menus.  A  single
  262.     keystroke  of  the selected letter will do the same thing as moving the
  263.     select bar with the up/down arrows and pressing <ENTER>.
  264.  
  265.     "Bulletproofing"  is  a  term  used  to indicate that the user input is
  266.     restricted to certain keystrokes. For example, if you are prompted  for
  267.     a  date  entry, the keyboard in a "bulletproofed" environment will only
  268.     respond to entries from 0 through 9 and the  /  key.  Other  keys  will
  269.     either not respond or will produce a beep. Much of SLIMMER's user input
  270.     has  been bulletproofed.  Where there is a restriction on the length of
  271.     an input item, the length is highlighted and the input is restricted to
  272.     that length. Normal editing keys can be used  for  most  of  the  input
  273.     items. These include the <BACK SPACE>, <INSERT>, <DELETE> and the arrow
  274.     keys.  In addition, <CTRL - END> will clear and let you start over with
  275.     the input item.
  276.  
  277.          MOUSE SUPPORT
  278.  
  279.     Mouse Support - In one of the first screens  in  the  program,  SLIMMER
  280.     will  indicate  whether  it has found an active mouse. For a two-button
  281.     mouse, the left button is the <RETURN> key and the right button is  the
  282.  
  283.                                     Page 5
  284.  
  285.     <ESC>  key.  If  you  have a three-button mouse, use the left and right
  286.     buttons only. For user convenience, the mouse is used to input some  of
  287.     the  values.  For example, when the date is requested, you may increase
  288.     the date by pushing the mouse forward, or decrease the date by  pulling
  289.     the  mouse backward. Try this whenever input is requested, and you will
  290.     quickly see where it is active and where it not. Again,  for  increased
  291.     ease  of  use, the left button is used to tag items when you are in the
  292.     calorie counter section of the program. When you are asked for a  scale
  293.     factor,  you may press the left button to accept the default value of 1
  294.     or you may first move the mouse backward or forward until you  see  the
  295.     value  that  you  want.  For foods, the scale factor varies from 0.1 to
  296.     10.0 in steps of 0.1, and  for  exercise  (minutes)  the  scale  factor
  297.     varies  from  1 to 100 in steps of 1 as you move the mouse. You are, of
  298.     course, always able to input any scale factor that you desire from  the
  299.     numbers on the keyboard....
  300.  
  301.     On some computers such as 386's and 486's the mouse  response  will  be
  302.     too  fast. In order to slow down the mouse, go to the UTILITIES section
  303.     and  select  the  "cHange  mouse  speed" option. The mouse speed can be
  304.     varied from a 100% level down to a 0% level. This corresponds to adding
  305.     a delay into the  mouse  response  of  from  0.0  up  to  0.5  seconds.
  306.     Experiment with this until you find the speed you desire. Note that the
  307.     mouse speed is shared by all those who use the same computer.
  308.  
  309.         BACKGROUND COLOR AND GRAPHICS MODE
  310.  
  311.     Whenever  you  run  SLIMMER  for the first time, go to the UTILITY menu
  312.     and  select  a background color  and  graphics  mode  for  yourself. In
  313.     order for SLIMMER to provide graphs, it must be told the  type  of  (or
  314.     lack of) graphics adaptor that you have. When you select the background
  315.     color   and  graphics mode, it is saved in a n$.CFG file for you (n$ is
  316.     your name) and will be used the next time you run SLIMMER.
  317.  
  318.         THE OUTPUT FILES
  319.  
  320.     The first time you run SLIMMER, it will  create  a  new  file  in  your
  321.     name, It requests your first name, then uses the first eight letters of
  322.     your  name  plus  the extension SLM to create a file such as "JOHN.SLM"
  323.     for a user named John. An example file named SLIM.SLM is included  with
  324.     SLIMMER  to  allow you to see a file with some daily weight and calorie
  325.     data points in it. SLIM is a "pseudo" registered user in that the  File
  326.     Management  options  can be examined when SLIM is the user name and the
  327.     program  is started with S3 SLIM. While the file management menu can be
  328.     viewed, the operation of the items are disabled. Be sure to select  the
  329.     graphics  mode corresponding to your system's capability in the UTILITY
  330.     section. You will then be able to view SLIM's sample data.
  331.  
  332.     SLIMMER will only save up to 400 days worth of weight  and  food  value
  333.     data.   On the  401st day, it will cut back to to 300 items (discarding
  334.     the first 100 values. If you want to keep a  complete  record  of  your
  335.     weight, and calorie file, you are advised to make a copy of your output
  336.     file  before  it  reaches  400  data  points, and every 400 data points
  337.     thereafter.
  338.  
  339.                                     Page 6
  340.  
  341.     HINT: You may, if you wish, use a different name in order to keep  your
  342.     old  data  on-line. For example, SLIM has accumulated 400 days worth of
  343.     data. Now, starting on the 401st day, he logs in as SLIM1 for the  next
  344.     400  days and so on. This will allow him to look at his old file at any
  345.     time by logging in as SLIM.
  346.  
  347.  
  348.         DATE ENTRIES
  349.  
  350.     When you first enter SLIMMER, you will be prompted  for  a  date.  This
  351.     date  is the default date for the daily date/weight/calorie  file.  The
  352.     date  from  your  system is used as the initial starting date. You need
  353.     only press <ENTER> to accept the date, or press + or - to  increase  or
  354.     decrease  the  date  by  one day.  You can also enter the date from the
  355.     keyboard.   Plotted  data  is  output  by date entry number rather than
  356.     date. In other words, if you have 7  daily  weights  -  followed  by  a
  357.     2-week  vacation  away  from  the scales - followed by seven more daily
  358.     weights, it would appear as 14 consecutive data points in  your  output
  359.     file and on your graph.
  360.  
  361.  
  362.         YOUR PERSONAL DATA AND GOALS
  363.  
  364.     This  section of the program should be completed by the user during his
  365.     or her first session with SLIMMER. Simply start at the top and move the
  366.     select bar using the up & down arrow keys. The first  item  "List  your
  367.     Personal  Data"  will be empty until you complete the rest of the item.
  368.     Carefully enter your response to each selected item as  you  work  your
  369.     way down the menu - from frame size down to your height. Finally select
  370.     the  "Calculate  Weight and Calorie Goals" item to calculate your ideal
  371.     weight  and  calorie goals. You will be asked to input your goal weight
  372.     and calorie intake goals. The goals are displayed on your user graphs.
  373.  
  374.     As you progress with your diet, some of your initial data  may  change.
  375.     You  can update your data at any time and have SLIMMER recalculate your
  376.     ideal weight and calorie values.   The  items  that  could  change  and
  377.     affect   calculated  values  are  the  Activity  level  and  the  Frame
  378.     definition.
  379.  
  380.     Note: Those of you  who  have  extremely  small  wrists  or  very  long
  381.     slender  fingers  may  find  yourselves  in  the  "  S " or Small frame
  382.     category. If this happens, feel free to upgrade yourself to the "  M  "
  383.     or  Medium  frame  category.  The  method used in SLIMMER to select the
  384.     frame size is admitedly crude - and your doctor's definition should  be
  385.     taken instead.
  386.  
  387.  
  388.         REVISE WEIGHT & FOOD VALUE DATA
  389.  
  390.     The daily plot data of date, calories, and weight  etc  can  be  edited
  391.     here. New lines can not be added, but existing lines can be changed. If
  392.     you  are  changing numbers by overwriting them, be sure that the number
  393.     returned by the editor is the one you want. (check your work). You  may
  394.     find  it  helpful to use the space bar to  overwrite the old data if it
  395.     extends beyond the new numbers you enter. To delete a line of data from
  396.  
  397.                                     Page 7
  398.  
  399.     the list, use the CTRL-END command to blank out the  DATE  entry.   The
  400.     editor will return a / value, and that line will be  deleted  when  you
  401.     leave the editor.
  402.  
  403.  
  404.         GRAPH YOUR PROGRESS
  405.  
  406.     Plots of your daily weight and food or exercise values can be viewed in
  407.     either ASCII,  low,  medium,  or  high  resolution  depending  on  your
  408.     system's  capability.  If  in  doubt  about  the  configuration of your
  409.     system, experiment with the options offered  in  the  UTILITY  section.
  410.     You  will need a color graphics adapter (CGA or EGA or VGA) to view the
  411.     high resolution graphs. SLIMMER will let you know if it  can't  find  a
  412.     graphics  card.  If  you  have  placed  the  command  GRAPHICS  in your
  413.     AUTOEXEC.BAT or have executed the command at some time before  entering
  414.     SLIMMER  and  if  you  have  a CGA graphics card or better, and if your
  415.     printer can do IBM graphics,  you  will  be  able  to  copy  your  high
  416.     resolution graphs to the printer with the <SHIFT-PRINT SCREEN> command.
  417.  
  418.  
  419.         COUNT CALORIES / VIEW FOOD TABLES
  420.  
  421.  
  422.     This section of the program is used  to  generate  your  Daily  Calorie
  423.     Counter  lists.  It is both the most complex and also the most powerful
  424.     section of the program. Its component parts are as follows:
  425.          1. Weight entry.
  426.     As you enter this section of the program, you will be prompted for your
  427.     daily weight. This happens every time. The default value is either your
  428.     previous day's value or a value  you  entered  earlier  the  same  day.
  429.     Change  the weight with the + or - keys, or enter a new weight from the
  430.     keyboard.
  431.          2.  SLIMMER food and exercise tables
  432.     The  food  tables,  starting with  "Beverages"  and  going  through the
  433.     "Vegetables"  are  selected  using  the arrow keys or the letter at the
  434.     left  end  of each line may be pressed to select  the  line.  You  will
  435.     then  see the food or exercise table. You may now use the up/down arrow
  436.     keys as well as page up/down  and  home/end  keys  to  move  about  the
  437.     table.  F1  provides  a  help menu. You may press the V key to show the
  438.     verbose data on each highlighted item.  Items  are  selected  with  the
  439.     <SPACE  BAR>  key  and  will  print  a  marker  at  the left end of the
  440.     highlighted line. (If the marker is already shown, then the <SPACE BAR>
  441.     will remove it).  Use the arrow keys to select a line -  then  mark  it
  442.     with  the  <SPACE  BAR>  key.  You  will  now be asked to enter a scale
  443.     factor.  The default value of 1 will save the line  as  shown.  If  you
  444.     enter  a  1.5,  the quantities will all be multiplied by 1.5 before the
  445.     line is transferred to your daily calorie counter list. (Note that  the
  446.     values  on the screen are NOT modified).  A scale factor less than .001
  447.     will return the line with a factor of 1.  The exercise tables  function
  448.     in  the same way as the food tables, but you enter the time in minutes.
  449.     When you are finished selecting all the applicable  items  on  a  given
  450.     food  table, press <ESC> to add the items to your daily calorie counter
  451.     list.
  452.  
  453.     Registered users get a Custom Food Table  Menu  from  which  to  select
  454.  
  455.                                     Page 8
  456.  
  457.     their  items.  These  are  the tables that they edited using the CALTAB
  458.     editor. Another feature is the SEARCH routine. If the (registered) user
  459.     enters a "?", he will be asked for a search string. It doesnt matter if
  460.     it is upper or lower case, but is limited to 8  characters  in  length.
  461.     For  example,  the  search words "bacon" or  "Bacon"  or  "BACON"  will
  462.     each  provide  a  table  of 18 items that contain bacon in the title or
  463.     description. A hint to those that will be  using  the  search  routine:
  464.     Even  with  my  XT operating at 10 mhz and with a math co-processor, it
  465.     takes about 12 seconds to search through the 1200 items that come  with
  466.     SLIMMER.   It  will save time if you customize your personal data files
  467.     to eliminate items that you don't eat, and also reduce  the  number  of
  468.     categories if at all possible.
  469.  
  470.         3. Edit Calorie Counter List for n$
  471.     When you have entered all the items for the day or for a portion of the
  472.     day,  you  can  now  edit  the list further by selecting the line "Edit
  473.     Calorie Counter List for n$".  In this editor,  you  can scale any line
  474.     again  using  the  F2  key. You will be asked for a scale factor again.
  475.     You may enter any number from zero upward. For example: if instead of 1
  476.     ounce you want three ounces,  you  enter  a  3  as  the  scale  factor.
  477.     Similarly,  enter  .5 to get a value of .5 ounce. Experiment a bit with
  478.     this until you get the hang of it.  NOTE THAT IF YOU SCALE A LINE BY 0,
  479.     THE LINE WILL BE DELETED. SLIMMER will check  to  see  if  your  scaled
  480.     numbers  seem reasonable.  If the quantity numbers seem out of range, a
  481.     comment  will  be given. At this point you should use the V key to view
  482.     the verbose listing.  As you move the space bar  up  and  down  on  the
  483.     individual  items  in  your  daily  list, you will notice one (or more)
  484.     items in the verbose list  where  the  numbers  are  written  over  the
  485.     vertical  bars that separate the numbers. The corresponding item may be
  486.     in error. After editing your data, use <ESC> to leave ther editor.
  487.  
  488.         4. Hint
  489.     When you are near the top of the menu and want to go to the bottom line
  490.     of the menu, use the <PAGE DOWN> or <END> key. Similarly, the <PAGE UP>
  491.     or <HOME> keys take you to the top.
  492.  
  493.  
  494.         FILE MANAGEMENT SELECTIONS (Registered Users Only)
  495.  
  496.     This section of the program will let you see which daily calorie  count
  497.     lists  are  stored  for  you. As you enter this section of the program,
  498.     there is a list of dates displayed on the left side of the  screen.  If
  499.     you  are just starting out, the list will be empty. Above the list will
  500.     be displayed "today's" date.
  501.  
  502.         1. Sum your daily calories
  503.     This  will  provide you with a summation of the day's food and exercise
  504.     values for "today's" date.
  505.  
  506.         2. Change today's calorie counter date.
  507.     The working date - or "today's" date can be changed  by  selecting  the
  508.     "Change  Today's  Calorie Counter Date" line. After you have selected a
  509.     new date, it may coincide with one  of  the  dates  on  the  left  hand
  510.     display  of  dates.  If so, the data for that day will be recalled.
  511.  
  512.                                     Page 9
  513.  
  514.  
  515.         3. Erase today's calorie counter list
  516.     If  you want a blank list for "today's" date, you can select the "Erase
  517.     Today's Calorie Count List" item to clear the file and  let  you  start
  518.     over  for that date. You will have to enter a Y or y to verify that you
  519.     do wish to erase the data.
  520.  
  521.         4. Print your daily calorie counter list
  522.     Using this item will allow you to send your data to either an Epson  FX
  523.     or  PostScript  type of printer. Two print files are created. The first
  524.     is  the n$.PRT file (Epson FX) and the n$.PS  file  (PostScript) (where
  525.     n$ is your name)..  These are created whether you print or not, and are
  526.     overwritten the next time you elect to print.
  527.  
  528.     NOTE:  SLIMMER  Epson  FX print files only use the standard BASIC print
  529.     commands and should work with most printers. No attempts  are  made  to
  530.     change  line  spacing,  to  skip perforations, etc. I leave the printer
  531.     settings for you to do for your own individual printer prior to running
  532.     SLIMMER. The PostScript files are written using Courier-Bold  10  point
  533.     as the default font and pitch.
  534.  
  535.         5. Recall old list for today's date
  536.     You can recall a prior day's file into today's date (if  you  have  the
  537.     same  thing  to  eat each Friday, for example) by selecting the "Recall
  538.     Old List for Today's Date" line. You will be given a choice of the last
  539.     fourteen (or less) daily calorie count files that have been saved for you.
  540.  
  541.     NOTE:   If  you  already have a file saved for today's date, its values
  542.     will be overwritten.
  543.  
  544.  
  545.         UTILITIES
  546.  
  547.     The  UTILITIES  section is used for a variety of things. It can be used
  548.     to  change or add user names without leaving the program, to change the
  549.     background color, to select the graphic  mode,  to  back-up  your  data
  550.     files,  change  the  mouse  speed,  or  to select a printer. First-time
  551.     users  should  select  a  printer  and  graphic mode during their first
  552.     session. The values will be saved for subsequent sessions.
  553.  
  554.         CALTAB FOOD TABLE EDITOR
  555.  
  556.     This  CALTAB  editor  is  only available to registered users. In it the
  557.     user may edit not only  the  data  within  the  food  tables,  but  the
  558.     description  and  name of the table itself. For new (registered) users,
  559.     you need only enter this section, then escape out of it  to  initialize
  560.     your  personal  food  table files and to generate your index file. This
  561.     index file is your key to using the custom menus in the COUNT  CALORIES
  562.     /  VIEW  FOOD  TABLES  section.  There  is a separate document file for
  563.     CALTAB that goes into more detail ...
  564.  
  565.         UNEXPECTED ERRORS AND LOCKUPS
  566.  
  567.     While  every attempt has been made to squash all the bugs, there may be
  568.  
  569.                                     Page 10
  570.  
  571.     a few that remain. The bugs that throw the program suddenly back to DOS
  572.     are very hard to trace since no error messages are given.   An  attempt
  573.     has  been  made  within SLIMMER to include error-trapping code to cover
  574.     every line of the program. Therefore, if  an  error  should  occur,  an
  575.     error  comment  will  appear  and  you will be able to return to DOS by
  576.     pressing any key. Some multiple errors may even lockup your computer at
  577.     this  point.  (If  you  reach  such  a  point,  make  a  note  of   the
  578.     circumstances  and  drop  me  a  note  about it.) Try the control-break
  579.     followed by control-c to see if there is a response. If there is  none,
  580.     simply  reboot your computer (turn it off then on again) and it will be
  581.     none the worse for wear.
  582.  
  583.         NOT ENOUGH MEMORY TO LOAD OR RUN SLIMMER?
  584.  
  585.     SLIMMER will require 135K to load, but then requires a total of  up  to
  586.     450k  to  run  the  larger  selections from the main menu.  If you have
  587.     some other programs loaded in memory and SLIMMER doesn't fit,  you  may
  588.     have  to  remove  some  of the other ones. As an aid in determining how
  589.     much memory is left after SLIMMER is loaded, run SLIMMER  and  whenever
  590.     you  are  asked for a date, respond with <ALT><F1>. This will trigger a
  591.     routine that will provide you with the memory available. There are  two
  592.     places  in the program that ask for the date. The first is when SLIMMER
  593.     first starts, the second in in the File Management  section  under  the
  594.     Count  Calories/...   selection  from  the  main  menu.  From  the File
  595.     Management menu, select Change Today's  Calorie  Counter  Date.   Since
  596.     some  of  the  arrays  in SLIMMER are allocated dynamically, the memory
  597.     available will be different in the various sections of the program.
  598.  
  599.         RANGE OF APPLICABILITY
  600.  
  601.     As  an Engineer, I often deal with the twin "concepts" of interpolation
  602.     and extrapolation. Interpolation means simply to obtain tabular  values
  603.     from  within the limits of the table. Extrapolation is fabricating data
  604.     beyond the limits of the table by making some assumptions to extend the
  605.     data. SLIMMER, on order to not quit every time that data  is  requested
  606.     from  beyond  the  limits  of  the  tables,  is  written  using  linear
  607.     extrapolation functions - much like weather forcasters do - and assumes
  608.     that what went on before will continue  into  the  future.  There  will
  609.     therefore  be  some error introduced into your ideal weight and calorie
  610.     calculations when you fall  outside  the  following  limits:
  611.  
  612.         Weight:            minimum = 90 lbs, maximum = 220 lbs
  613.  
  614.         Height: for men    minimum = 5'-1", maximum = 6'-3"
  615.                 for women  minimum = 4'-8", maximum = 5'-10"
  616.  
  617.         Age   : Adults 25 years of age and above. (If between  18  and  25,
  618.                 your  ideal  weight  could be reduced by one pound per year
  619.                 for every year below age 25.)
  620.  
  621.         Exercise Calories: are based on data given for a weight of 150 lbs.
  622.                 An adjustment is made for weight in the range of 110 lbs to
  623.                 190 lbs.  The  range  of applicability is therefore 110 lbs
  624.                 thru 190 lbs.
  625.  
  626.                                     Page 11
  627.  
  628.  
  629.  
  630.         RUNNING UNDER WINDOWS 3.0
  631.  
  632.    For the convenience of those running MicroSoft Windows, a DIET.ICO  file
  633.    is included for use as the icon.
  634.  
  635.  
  636.         SOURCE CODE
  637.  
  638.     For those of you who have Borland's Turbo Basic and want to have a copy
  639.     of  the  SLIMMER  source  code, it is available to REGISTERED users for
  640.     $10. For  unregistered  users,  the  cost  is  $45  (and  includes  the
  641.     registration). The source code is provided to registered users with the
  642.     request that any modification or variation of SLIMMER be released under
  643.     a  different  name.  I  wish  to reserve the name SLIMMER, SLIMMER.EXE,
  644.     SLIMMER.ARC, SLIMMER2, SLIM21,  etc as unique  names  on  the  bulletin
  645.     boards.  SLIMMER is  written and compiled with Turbo Basic Version 1.1.
  646.     (It will compile with Version 1.0 if desired)
  647.  
  648.  
  649.         DISCLAIMER
  650.  
  651.     For obvious reasons, no claims are made or implied that SLIMMER is more
  652.     than  a database and a tracking tool. All medical data contained herein
  653.     is correct to the best of my  knowledge,  but  the  user  (YOU)  assume
  654.     complete  responsibility  for  the use of and the results of the use of
  655.     this software.
  656.  
  657.  
  658.         ON THE IMPORTANCE OF EXERCISE
  659.  
  660.     Dieting without a concurrent exercise  program  is  dangerous.  It  can
  661.     lead  to a serious loss of muscle and a drop in metabolic rate. Results
  662.     of a study were reported in  1984  in  "the  Yo-Yo  Syndrome"  by  G.L.
  663.     Blackburn,  M.D.,Ph.D.,  K.N.  Pavlou,  Sc.D.,  and  V. Zak in RxWeight
  664.     Control, Vol.2, No.5, Jun-Jul 1984.
  665.  
  666.     When 1000 calorie a day diets were administered to separate  groups  of
  667.     exercisers and non-exercisers, the following results were found:
  668.  
  669.                           EXERCISE GROUP        NON-EXERCISE GROUP
  670.  
  671.     Food Calories             1000/day              1000/day
  672.  
  673.     Total Weight Loss          19 lbs                18 lbs
  674.  
  675.     Body Fat Lost              23 lbs                11 lbs
  676.  
  677.     Muscle Gained               4 lbs                 -
  678.  
  679.     Muscle Lost                 -                     7 lbs
  680.  
  681.     If  you attempt to diet without exercise, you will reach a plateau at a
  682.  
  683.                                     Page 12
  684.  
  685.     weight higher than your ideal weight, and  your  metabolism  rate  will
  686.     decrease as your body tries to compensate for the lack of calories. The
  687.     above table should help to convince you of the need to exercise.
  688.  
  689.  
  690.         A WORD OR TWO ABOUT CHOLESTEROL
  691.  
  692.     Cholesterol  comes  in  two  component  parts.  The  HDL  (high density
  693.     lepoprotiens)  and  the  LDL  (low  density  lepoprotiens).   The   HDL
  694.     transports  cholesterol  to  the  liver where it is eliminated. The LDL
  695.     carries the cholesterol in the blood and can clog  arteries  and  cause
  696.     heart  disease.  Typically, total cholesterol levels over 200 mg/dl are
  697.     of concern. You are not automatically risk-free if you test below  200.
  698.     If your HDL levels are too low, you can be just as succeptable to heart
  699.     disease.  Values  of  HDL  below  35  mg/dl  are  just  as bad as total
  700.     cholesterol levels over 200. The usual screening test in the $3  to  $5
  701.     range will only give you the total number of HDL and LDL combined. Your
  702.     doctor can arrange for a more sophisticated test that will give you the
  703.     component parts and a lot more - - .(for a lot more $$)
  704.  
  705.  
  706.     Ways to Help to Lower High Cholesterol Levels:
  707.  
  708.         1. Decrease or eliminate coffee and alcohol from your diet.
  709.         2. Include fish in your diet.
  710.         3. Include  soluble  fiber in  your diet - especially that found in
  711.     beans (pinto or navy) and from oat bran.
  712.         4. Exercise at least 3 or 4 times a week.  This helps increase  the
  713.     good cholesterol HDLs and decrease the bad cholesterol LDLs.
  714.  
  715.     Figuring your Daily Allowance of Fat:
  716.  
  717.     The  Heart  Association  recommends that no more than 10% of your total
  718.     calories   come  from  saturated  fat.  The  government  has   recently
  719.     recommended that no more than 30% of our total calories come from  fat.
  720.     SLIMMER  uses the government guideline number - using a conversion of 9
  721.     fat  calories  per  fat gram - to come up with a goal value for the fat
  722.     graph.
  723.  
  724.     You may want to begin by determining which foods your fat calories  are
  725.     coming  from.  You  can  then  decide  which  foods  to  cut back on or
  726.     eliminate to lower your fat intake. The food tables will also help  you
  727.     choose foods low in fat to substitute for foods high in fat.
  728.  
  729.     Controlling Dietary Cholesterol and Other Fats:
  730.  
  731.     Dietary  cholesterol  can  be  controlled by simply eliminating the few
  732.     high cholesterol foods ( egg yolks, organ meats, sardines, and shrimp).
  733.     Substituting  polyunsaturated  margarines  and  oils  for  butter   and
  734.     shortening will give you adequate polyunsaturated fat.
  735.  
  736.     Sources:
  737.  
  738.     United  States  Department  of Agriculture, "Nutritive Value of Foods",
  739.  
  740.                                     Page 13
  741.  
  742.     Home and  Garden  Bulletin  Number  72,  Revised  1981.  United  States
  743.     Department  of  Agriculture,  Handbook No. 8, Revised Sections 8-1 thru
  744.     8-12.
  745.  
  746.     Bowes  and  Church's  "Food  Values  of  Portions  Commonly Used", 15th
  747.     edition, revised by Jean  A.T.Pennington,  Ph.D.,  R.D.,  published  by
  748.     Harper & Row, New York.
  749.  
  750.     Routines written by others and used in SLIMMER are
  751.  
  752.         TBWINDO.INC  -  Turbo  Basic  window  routines that make SLIMMER an
  753.                      attractive program. For those  of  you  that  want  to
  754.                      contact him, Rick can be reached thru  his  Compuserve
  755.                      #   76210,443.   He  now  has  improved  routines  for
  756.                      PowerBasic as well.
  757.  
  758.         INPSUB.INC - Author Unknown
  759.                      This routine is used to replace the INPUT command  and
  760.                      has  been  modified  to   make   "bulletproof"   input
  761.                      routines for dates and weights etc.
  762.  
  763.         JULIAN.INC - Public Domain by Joe Vest
  764.                      This  is  used  to transform the Gregorian date into a
  765.                      Julian  date  where it can easily be included into the
  766.                      +/-  routine  for the date input and then reconverted.
  767.                      A very handy routine.
  768.  
  769.         FNEDIT.INC - Public Domain by Joe Vest
  770.                      This routine was used to remove  leading  blanks  from
  771.                      some of the string data.
  772.  
  773.         GETFREE.BAS - Author Unknown
  774.                       Renamed   space.bas   and  used  to  determine  space
  775.                       remaining on the default drive.
  776.  
  777.         CHKCRC.INL - Written by Craig J Kim
  778.                      Used  within  SLIMMER  to  determine  if  a  file  has
  779.                      changed during the present session.
  780.  
  781.         ABOUT THE AUTHOR / PROGRAMMER
  782.  
  783.     SLIMMER  is  the  first major program written by myself in TURBO BASIC.
  784.     My background is in Structural Engineering, and I'm  currently  working
  785.     as  an  Aerospace  Structures  Engineer  for  Fairchild  Space  Co.  in
  786.     Germantown, MD. I hold a PhD in Applied Sciences from the University of
  787.     Delaware,  where  I  completed  a  dissertation  on  various   solution
  788.     techniques  for laminated plates. My interests include the violin which
  789.     I currently play with a music group known as "Servants of the Lord Most
  790.     High". My home computer is an XT clone, operating at 10 mhz with  a  20
  791.     meg  hard  disk,  a  3-1/2" 720k and a 5-1/4" 360k floppy. I use a 2400
  792.     baud modem and BOYAN's version D4 shareware communications  package  to
  793.     access  the  various  boards.  I  have a NEC Multisync 2A color monitor
  794.     which helps me to see the effects of monochrome thru  VGA  programming.
  795.     My  programming  time is generally in the wee hours - usually between 3
  796.  
  797.                                     Page 14
  798.  
  799.     and 6 am and on the weekends - and any other free moment.
  800.  
  801.     If  any  of  you  want to drop me a line or leave a message, my mailing
  802.     address is:
  803.  
  804.                         George D. Summers
  805.                         2117 Coon Club Road
  806.                         Westminster, MD 21157
  807.  
  808.     and my Compuserve number is: 76276,564
  809.  
  810.  
  811.     I'll  have  the  latest version of  SLIMMER  available on CompuServe in
  812.     Library 10 (Exer/Fit/Nutrition). Type GO GOODHEALTH at the ! prompt and
  813.     when you get to the library, brouse thru using the keyword SLIMMER.
  814.  
  815.  
  816.         WHERE DOES SLIMMER GO FROM HERE
  817.  
  818.     Every  major  revision  to  SLIMMER  takes  about  six  months or so to
  819.     formulate and test. You the users will, to a large part,  be  the  ones
  820.     that  dictate  what is and is not included in future revisions. Do send
  821.     your comments and suggestion. Some possible directions are as follows:
  822.  
  823.         1. Write a version for the  Macintosh.
  824.         2. Prepare an international  version  with  possibility  of  having
  825.     dates  in  the  form dd.mm.yy instead of mm/dd/yy and use kg instead of
  826.     lbs etc.
  827.         4. Rewrite SLIMMER in the C language.
  828.         5. Include more on-line HELP screens.
  829.  
  830.  
  831.         REGISTRATION
  832.  
  833.     For those of you interested in registration, all  the  information  you
  834.     need  is found by selection the REGISTRATION line in the main menu. You
  835.     are shown a registration form that you can send  to  your  printer.  Be
  836.     sure to indicate your preference for 3-1/2" or 5-1/4" disks.  You may
  837.     use the form found on the next page of this document file instead if you
  838.     have printed this file.
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.                                     Page 14
  853.  
  854.  
  855.                          SLIMMER REGISTRATION FORM
  856.  
  857.  
  858. Your Name _____________________________________________________________________
  859.  
  860. Street Address ________________________________________________________________
  861.  
  862. City, State, Zip ______________________________________________________________
  863.  
  864. Phone # (Optional) ____________________________________________________________
  865.  
  866. Disk Size Desired      3-1/2" ________     or    5-1/4" _______
  867.  
  868. Disk Density           High   ________     or    Low    _______
  869.  
  870. Weight Tracked in      Pounds ________     or    Kilograms _______
  871.  
  872. Registration # shown in SLIMMER closing screen  _______________________________
  873.  
  874. Amount Enclosed:  $35 for registration __________
  875.  
  876.                   $45 for registration and source code __________
  877.  
  878.                   $50 for registration outside USA __________
  879.  
  880.  
  881. Please describe your equipment (optional):
  882.  
  883. Computer type ____________________________________________DOS version__________
  884.  
  885. Amount of RAM (memory) __________ k ;   Hard disk size ___________ meg
  886.  
  887. Graphics type: Mono _____ , CGA _____ , EGA _____ , VGA _____ , Other _________
  888.  
  889.  
  890. Comments_______________________________________________________________________
  891.  
  892. _______________________________________________________________________________
  893.  
  894. _______________________________________________________________________________
  895.  
  896. _______________________________________________________________________________
  897.  
  898. _______________________________________________________________________________
  899.  
  900. Please send this form and your check to:
  901.  
  902.                         George D. Summers
  903.                         2117 Coon Club Road
  904.                         Westminster, MD 21157
  905.  
  906.  
  907.